#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void Swap(int* p1, int* p2)
{
	int tmp = *p1;
	*p1 = *p2;
	*p2 = tmp;
}
int main()
{
	int a, b;
	scanf("%d%d", &a, &b);
	Swap(&a, &b);
	printf("%d %d", a, b);
	return 0;
}